package com.meitutest.autoscript.camera;

import android.os.Bundle;
import android.support.test.InstrumentationRegistry;
import android.support.test.uiautomator.UiDevice;
import android.text.TextUtils;

import org.junit.Test;

/**
 * Created by CrystalChen on 2017/12/16.
 */

public class MT_VedioTest {
    @Test
    public void test01() {
        UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
        MT_CameraUtils mt_cameraUtils = new MT_CameraUtils(uiDevice);
        Bundle b = InstrumentationRegistry.getArguments();
        String durationStr = b.getString("duration");
        long duration = 3000;

        if (!TextUtils.isEmpty(durationStr)) {
            duration = Long.parseLong(durationStr);
        }
        mt_cameraUtils.vedioStressTest(duration);

    }
}
